package com.codedef.fservice;

import com.codedef.entity.ReservationRecord;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 孙宏宇
 * @date 2021/2/24 10:22
 */
@FeignClient(value = "seatreservation")
public interface ReservationRecordService {

    /**
     * 查询某个人当前可以签到的预约  Feign接口
     */
    @GetMapping("/reservation/f/canSignInRecord")
    ReservationRecord getCanSignInReservationRecordFeign(@RequestParam("seatId") Integer seatId, @RequestParam("userId") Integer userId);


    /**
     * 更新一个预约记录的状态  Feign接口
     */
    @GetMapping("/reservation/f/updateReservationStateByIdFeign")
    Boolean updateReservationStateByIdFeign(@RequestParam("reservationRecordId") Integer reservationRecordId, @RequestParam("state") Integer state);


}
